package com.stephen.mymall.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @ author: stephen
 * @ create: 2020-03-17 20:21
 * @ description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private Integer id;

    @NotBlank
    private String username;

    @NotBlank
    private String password;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
